public class student {
    public String name;
    public int age;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void togther(){
        System.out.println("name:"+name +"  "+"age:"+age);
    }

    public static void main(String[] args) {
        student st1=new student();
        st1.name="sb";
        st1.age=18;
        st1.togther();
    }
}
